<?php

namespace App\Enums;

class RedisKeyEnum {
    const USER_IN_ROOM = 'user:in_room:%s';
    const ROOM_POPULARITY = 'room:popularity:%s';//单个房间人气%s=room_id
    const ALL_ROOM_POPULARITY = 'all:room:popularity';//所有房间人气 有序集合
    public const TYPE_ROOM_POPULARITY = 'type:room:popularity:%s';
    const ROOM_USERS = 'room:users:%s';//房间内的用户列表 %s=room_id
    const ROOM_INFO = 'room:info:%s';//房间信息 %s=room_id
    const ROOM_PIT_USER = 'room:pit:user:%s';//房间麦位用户 %s=room_id
    const ROOM_PIT_LOCK = 'room:pit:lock:%s';//获取房间麦位锁信息 哈希结构 %s=room_id
    const ROOM_BLACK_LIST = 'room:balck_list:%s';//获取房间黑名单列表 有序集合 %s=room_id
    const ROOM_PIT_APPLY = 'room:pit_apply:%s';//获取获取房间排麦列表 有序集合 %s=room_id
    const USER_INFO = 'user:info:%s';//获取用户信息 哈希结构 %s=user_id
    const SYSTEM_COMMON_WORDS = 'common_words:system:type%s';//系统常用语，哈希结构 %s=类型，1：主播；2：用户...
    const ADMIN_EXPORT_LOG = 'qp:admin:export_log'; //管理员导出日志
    const ADMIN_VALI_IMG =    'qp:admin:vali_img:phone:%s';//图形验证码用户表示
    const ADMIN_CAN_USE_SMS =    'qp:admin:can_use_sms:phone:%s';
    const ADMIN_EXPORT_LOG_ID = 'qp:admin:export_log'; //管理员导出日志id，list结构
    const CLIENT_USER_BANNER = 'user:client_banner'; //客户端banner图地址
    public const ROOM_POPULARITY_FIXED = 'room:popularity:fixed:';    //固定人气
    public const ROOM_POPULARITY_FLOW  = 'room:popularity:flow:';     //流动人气
    public const ROOM_POPULARITY_SEX = 'room:popularity:sex:';     //性别人气

    const CRITICAL_TREE_RULE = 'tree:critical:rule';
    const CRITICAL_GIFTS = "critical:gifts:";
    const ADMIN_LOGIN_TOKEN = "admin:login_token:adminid_%s";
    const RICH_CHARM_RANKING_LIST = 'rank:%s:%s:%s';
    //用户行为审核状态
    public const USER_VERIFY_STATUS  = "user:verify:status:";
    //用户被封禁的行为 哈希 %s=user_id
    public const USER_ACTION      = 'u:action:%s';

    /*预警系统*/
    const ERM_SYNC_PUBLIC_ID = "erm:sync_public_id";//同步充值用户到大众名单id
    const ERM_SYNC_PUBLIC_LOCK = "erm:sync_public_lock";//同步用户到大众名单锁
    const ERM_STATISTIC_CONSUME_ID = "erm:statistic_consume_id";//累计消费统计id
    const ERM_STATISTIC_CONSUME_LOCK = "erm:statistic_consume_lock";//累计消费统计锁
    const ERM_STATISTIC_EARNINGS_ONE_ID = "erm:statistic_earnings_one_id";//累计收益统计id
    const ERM_STATISTIC_EARNINGS_ONE_LOCK = "erm:statistic_earnings_one_lock";//累计收益统计锁
    const ERM_STATISTIC_EARNINGS_TWO_ID = "erm:statistic_earnings_two_id";//累计收益统计id
    const ERM_STATISTIC_EARNINGS_TWO_LOCK = "erm:statistic_earnings_two_lock";//累计收益统计锁

    const ERM_GRAY_CHECK_PAY_ID = "erm:gray_check_pay_id";//自动加灰校验支付id
    const ERM_GRAY_CHECK_PAY_LOCK = "erm:gray_check_pay_lock";//自动加灰校验支付id锁
    const ERM_USER_ROLE = 'erm:user_role:uid:%s';
    const ERM_USER_AUTH_NUM = 'erm:user:auth:uid:date:%s:%s';//用户单日认证次数
    const ERM_USER_AUTH_FAILED_NUM = 'erm:user:auth:failed:uid:type:%s:%s';

    // 自动审核支付宝提现订单
    const AUTO_ZFB_RECHARGE_ORDER = 'auto:recharge:order:switch:%s';

    //PK房
    public const CROSS_TOP_THREE_RANK = 'cross:pk:top:three:rank';                  //每个房间的前三人气后面连接id和room_id,RedisKeyEnum::CONFIG_PK_ROOM_RANK_INFO.$pkId.$roomId TODO
    public const  CONFIG_PK_ROOM_INFO      = "cross:pk:room:Info:%d";              // 房间信息  room_id//需要一直维护
    public const CROSS_PK_ROOM_VALUE = 'cross:pk:room:value:%d';

    //支付宝开关
    const USER_ALIPAY_AUTOCHECK_SWITCH = 'user:alipay:auto:check:switch';

    const ERM_BLACK_CHECK_PAY_LOCK       = "erm:black_check_pay_lock";      //自动加黑校验支付id锁

    //家族锁
    const FAMILY_DETAIL = 'family:detail';                                  //家族详情

    //飞屋环球记
    const FLYING_FISH_RATIO_CONFIG = 'flying:fish:ratio_config';                    //产出比
    const FLYING_FISH_USER_RATIO_CONFIG = 'flying:fish:user_ratio_config';        //用户产出比
    const FLYING_JACKPOT_MONEY = 'flying:jackpot_money';                          //奖池金额
    const FLYING_SUPPLEMENT_CONFIG = 'flying:supplement:config';                    //补池配置


}
